package cn.school.studyManage.dao;

import cn.school.studyManage.entity.StudentBehaviorCfgItem;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface StudentBehaviorCfgItemDao extends BaseMapper<StudentBehaviorCfgItem> {

    /**
     * 批量新增配置评分项目
     * @param cfgItemList
     * @return
     */
    int createCfgItemBatch(@Param("cfgItemList") List<StudentBehaviorCfgItem> cfgItemList);

//    /**
//     *  通过cfgId查询itemIdList
//     * @param cfgId
//     * @return
//     */
    List<Long> findItemIdByCfgId(Long cfgId);
//
    /**
     *
     * @param cfgId
     * @return
     */
    int delByCfgId(Long cfgId);
}
